package daoMySQL;

import daoDataFactory.DaoFactory;
import daoInterface.DaoICategorie;
import daoInterface.DaoIConsumtie;
import daoInterface.DaoIDrank;
import daoInterface.DaoIGerecht;
import daoInterface.DaoIMenu;
import daoInterface.DaoITafel;

public class MySQLDAOFactory extends DaoFactory{

	
	private static MySQLDAOFactory instance;
	
	private MySQLDAOFactory() {
	}
	
	public static MySQLDAOFactory getInstance(){
		if(instance == null){
			instance = new MySQLDAOFactory();
		}
		return instance;
	}
	
	@Override
	public DaoIGerecht getDaoIGerecht() {
		return MySQLGerecht.instance();
	}

	@Override
	public DaoIDrank getDaoIDrank() {
		return MySQLDrank.instance();
	}

	@Override
	public DaoICategorie getDaoICategorie() {
		return MySQLCategorie.instance();
	}

	@Override
	public DaoITafel getDaoITafel() {
		return MySQLTafel.instance();
	}

        @Override
        public DaoIMenu getDaoIMenu() {
                return MySQLMenu.instance();
        }

        @Override
        public DaoIConsumtie getDaoIConsumtie() {
                return MySQLConsumtie.instance();
        }
	
	

}
 
